]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: include the close button overlap in the right side chrome
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 13 Dec 2012 21:39:02 +0000 (16:39 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 14 Feb 2013 23:18:22 +0000 (18:18 -0500)
As we do for the top side; the border is overlaied in the top/right
corner.

https://bugzilla.gnome.org/show_bug.cgi?id=682050

js/ui/workspace.js

index 567674169a905a97bef269ac51c82d72401cbdad..85fae08568f8749cd8db9903a81ce8af22539ad8 100644 (file)
@@ -524,7 +524,8 @@ const WindowOverlay = new Lang.Class({
     },
 
     chromeWidths: function () {
-        return [this.borderSize, this.borderSize];
+        return [this.borderSize,
+                Math.max(this.borderSize, this.closeButton.width - this.closeButton._overlap)];
     },
 
     relayout: function(animate) {